# 设置多个可能的Wix环境变量
$wixPath = "C:\Users\Administrator\AppData\Local\tauri\WixTools\wix314-binaries"
$env:WIX = $wixPath
$env:TAURI_BUNDLER_WIX_PATH = $wixPath
$env:TAURI_WIX_PATH = $wixPath

# 输出环境变量值以确认设置正确
Write-Host "WIX环境变量已设置为: $env:WIX"
Write-Host "TAURI_BUNDLER_WIX_PATH环境变量已设置为: $env:TAURI_BUNDLER_WIX_PATH"
Write-Host "TAURI_WIX_PATH环境变量已设置为: $env:TAURI_WIX_PATH"

# 运行tauri构建命令
npx tauri build